package com.chixing.Homework.Order1;

import com.chixing.day07_adstract.prototype.Company;

public class OrderTest {
    public static void main(String[] args) {
        //创建订单对象
        PersonOrder p1=new PersonOrder();
        p1.setPersonOrderName("张三");
        p1.setPersonOrderId("20110327008");
        p1.setProductNum(1500);

        CompanyOrder c1=new CompanyOrder();
        c1.setCompanyOrderName("华为");
        c1.setCompanyOrderId("20110327008-Tenejhv");
        c1.setProductNum(2500);


        //调用业务 创建业务对象
        BusinessOrder bo=new BusinessOrder();
        bo.OrderFun1(p1);
        bo.OrderFun1(c1);
    }

}
